@echo off
set EN_PATH_FILE=istempPath.txt
set str=
for /F "tokens=1,2,* " %%j in ('REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v path ^| findstr /i "Path"') do ( 
	set str=%%l
)  
set remain=%str%
type nul > %EN_PATH_FILE%
:loop
for /f "tokens=1* delims=;" %%a in ("%remain%") do (
	
	echo %%a>>%EN_PATH_FILE%
	
	set remain=%%b
)
if defined remain goto :loop
echo ******system PATH to %EN_PATH_FILE% done.******
echo on
